cmake_minimum_required(VERSION 2.8)
project("upme")

add_subdirectory(core)
add_subdirectory(libs/db/db_mysql)



#uninstall for linux
if(${CMAKE_SYSTEM_NAME} STREQUAL Linux)
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
endif()
